package com.heima.api.fallback;

import com.heima.api.ApArticleFeign;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

/**
 * @author 21236
 */
@Component
public class ApArticleFeignFallBack implements ApArticleFeign {
    @Override
    public ResponseResult syncFromNews(ArticleDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR);
    }
}
